// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'WorkShopId',
        footer: "Foots",
        cnName: '车间管理',
        name: 'workshopmanagementmodel',
        url: "/workshopmanagementmodel/",
        sortName: "WorkShopId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"WorkShopCode":"","WorkShopName":"","WorkShopDescription":""};
    const editFormOptions = [[{"title":"车间编码","field":"WorkShopCode","type":"text"}],
                              [{"title":"车间名称","field":"WorkShopName","type":"text"}],
                              [{"title":"车间描述","field":"WorkShopDescription","type":"textarea"}]];
    const searchFormFields = {"WorkShopCode":"","WorkShopName":"","WorkShopDescription":"","CreateTime":"","CreateUserName":"","UpdateTime":""};
    const searchFormOptions = [[{"title":"车间编码","field":"WorkShopCode","type":"like"},{"title":"车间名称","field":"WorkShopName","type":"like"},{"title":"车间描述","field":"WorkShopDescription"},{"title":"创建时间","field":"CreateTime"},{"title":"创建人","field":"CreateUserName"},{"title":"更新时间","field":"UpdateTime"}]];
    const columns = [{field:'WorkShopId',title:'车间id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'WorkShopCode',title:'车间编码',type:'string',width:120,align:'left',sort:true},
                       {field:'WorkShopName',title:'车间名称',type:'string',width:120,align:'left'},
                       {field:'WorkShopDescription',title:'车间描述',type:'string',width:220,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'CreateUserName',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}